package com.relytosoft.mizar.media.system.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.relytosoft.dubhe.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * 告警类型
 *
 * @Author SunLi
 * @Date: 2022/4/7 10:37
 * @Version 1.0
 */

@TableName("VID_ALARM_TYPE")
@ApiModel("VidAlarmType")
public class VidAlarmType extends BaseEntity {

    private static final long serialVersionUID = 1234091649281157191L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    @TableId(value="ID", type= IdType.AUTO)
    private Integer id;

    /**
     * 告警类型类别
     */
    @ApiModelProperty(value = "告警类型类别", required = true)
    @TableField("ALARM_CATEGORY")
    private Integer alarmCategory;

    /**
     * 告警类型名称
     */
    @ApiModelProperty(value = "告警类型名称", required = true)
    @TableField("NAME")
    @NotBlank(message = "告警类型名称不能为空")
    private String name;

    /**
     * 告警等级
     */
    @ApiModelProperty(value = "告警等级")
    @TableField("ALARM_LEVEL")
    private Integer alarmLevel;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @TableField("STATUS")
    private Integer status;

    /**
     * 获得主键ID
     */
    public Integer getId(){
        return this.id;
    }
    /**
     * 设置主键ID
     */
    public void setId(Integer id){
        this.id = id;
    }

    /**
     * 获得告警类型类别
     */
    public Integer getAlarmCategory(){
        return this.alarmCategory;
    }
    /**
     * 设置告警类型类别
     */
    public void setAlarmCategory(Integer alarmCategory){
        this.alarmCategory = alarmCategory;
    }

    /**
     * 获得告警类型名称
     */
    public String getName(){
        return this.name;
    }
    /**
     * 设置告警类型名称
     */
    public void setName(String name){
        this.name = name;
    }

    /**
     * 获得告警等级
     */
    public Integer getAlarmLevel(){
        return this.alarmLevel;
    }
    /**
     * 设置告警等级
     */
    public void setAlarmLevel(Integer alarmLevel){
        this.alarmLevel = alarmLevel;
    }

    /**
     * 获得备注
     */
    public String getRemark(){
        return this.remark;
    }
    /**
     * 设置备注
     */
    public void setRemark(String remark){
        this.remark = remark;
    }

    /**
     * 获得状态
     */
    public Integer getStatus(){
        return this.status;
    }
    /**
     * 设置状态
     */
    public void setStatus(Integer status){
        this.status = status;
    }

    @Override
    public String toString() {
        return "VidAlarmType{id="+id+
                ",alarmCategory="+alarmCategory+
                ",name="+name+
                ",alarmLevel="+alarmLevel+
                ",remark="+remark+
                ",status="+status+
                ",createdId="+createdId+
                ",createdBy="+createdBy+
                ",createdTime="+createdTime+
                ",updatedId="+updatedId+
                ",updatedBy="+updatedBy+
                ",updatedTime="+updatedTime+
                "}";
    }
}

